package ncc.sso.bs;

import java.util.Map;

import nc.bs.framework.common.NCLocator;
import nc.vo.pub.BusinessException;

public class NCCSSOImpl implements INCCSSOService {
	public void registerSSOInfo(NCCSSORegInfo regInfo) throws BusinessException {
		NCCSSORegisterCenter.getInstance().registerNCCSSORegInfo(regInfo);
	}

	public NCCSSORegInfo fetchSSORegInfo(String access_token) throws BusinessException {
		//return NCCSSORegisterCenter.getInstance().fetchSSORegInfo(access_token);
		return NCLocator.getInstance().lookup(IPUMASSO.class).pumaLoginFetch(access_token);
	}

	public Map<String, NCCSSOAuthenVO> getAuthenMap() {
		NCCSSORegisterCenter.getInstance();
		return NCCSSORegisterCenter.getSSOConfigVO().getAuthenMap();
	}

	public void registerSSOInfo(NCCSSORegInfo regInfo, int regTimeOut) throws BusinessException {
		NCCSSORegisterCenter.getInstance().registerNCCSSORegInfo(regInfo, regTimeOut);
		
	}
}